CXX = g++
CXXFLAGS = -std=c++11 -Wall -pthread -g
TARGET = socket_test
SIMPLE_TARGET = simple_test

all: $(TARGET) $(SIMPLE_TARGET)

$(TARGET): socket_test.cpp
	$(CXX) $(CXXFLAGS) -o $(TARGET) socket_test.cpp

$(SIMPLE_TARGET): simple_test.cpp
	$(CXX) $(CXXFLAGS) -o $(SIMPLE_TARGET) simple_test.cpp

clean:
	rm -f $(TARGET) $(SIMPLE_TARGET)

test: $(TARGET)
	./$(TARGET)

simple: $(SIMPLE_TARGET)
	./$(SIMPLE_TARGET)

.PHONY: all clean test simple
